<?php
class SF_PromoteEvents_Block_Adminhtml_Eventslist_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
{
	public function __construct()
    {
        parent::__construct();
                 
        $this->_objectId   = 'id';
        $this->_blockGroup = 'promoteevents';
        $this->_controller = 'adminhtml_eventslist';
        
        $this->_updateButton('save', 'label', $this->__('Save Item'));
        $this->_updateButton('delete', 'label', $this->__('Delete Item'));
    }
 
    public function getHeaderText()
    {
        if( Mage::registry('promoteevents_data') && Mage::registry('promoteevents_data')->getId() ) {
            return $this->__("Edit Item");
        } else {
            return $this->__('Add Item');
        }
    }
}
